package com.roadjava.javaweb.student.util;


public class ExcludeResourceUtil {
    //不需要过滤的url
    static String[] urls = {".js",".css",".ico",".jpg",".png"};

    /**
     *
     * @param uri,如: /student_javaweb/resources/css/common.css
     * @return
     */
    public static boolean shouldExclude(String uri) {
        boolean flag = false;
        for (String str : urls) {
            if (uri.contains(str)) {
                flag = true;
                break;
            }
        }
        return flag;
    }
}
